import { DB } from "./entity";
const initDB = async () => {
  try {
    if (!DB.isInitialized) {
      await DB.initialize();
      console.log("数据库初始化成功");
    }
  } catch (e) {
    console.error("数据库初始化失败", e);
  }
};
export default initDB;
